package com.breezelin.freshmarket.network.asynctasks;

/**
 * Created by Breeze Lin
 * 22:52 2016/5/18
 * 1linyufeng1@gmail.com
 */

import com.breezelin.freshmarket.entities.rsp.CategoriesRsp;
import com.breezelin.freshmarket.network.FMAsyncTask;
import com.breezelin.freshmarket.network.apis.ContentApi;

/**
 * 所有分类的请求
 */
public abstract class AllCategoryTask extends FMAsyncTask<Void, Void, CategoriesRsp> {

	protected AllCategoryTask() {
		super(ContentApi.ALL_CATEGORY);
	}

	@Override
	protected CategoriesRsp doInBackground(Void... params) {
		return ContentApi.getCategories();
	}
}
